package main.java.study.step02;

/**
 * @author liuwenxiu
 * @Description: 静态属性变量
 * @date 2022-7-13 14:00
 */
public class StaticPropertiesDemo {
    
    private static int count = 0;

    public StaticPropertiesDemo() {
        count++;
    }

    public static void main(String[] args) {
        StaticPropertiesDemo demo1 = new StaticPropertiesDemo();
        StaticPropertiesDemo demo2 = new StaticPropertiesDemo();
        StaticPropertiesDemo demo3 = new StaticPropertiesDemo();
        System.out.println(StaticPropertiesDemo.count);
//        System.out.println(demo3.count);
    }
}
